package com.undsf.study7816.kancolle

import com.undsf.study7816.BaseCrawler
import org.apache.logging.log4j.LogManager

/**
 * Created by Arathi on 2017/8/16.
 */
class WikiwikiCrawler extends BaseCrawler {
    String baseUrl
    static def logger = LogManager.getLogger(WikiwikiCrawler.class)

    WikiwikiCrawler(String baseUrl) {
        super()
        this.baseUrl = baseUrl
    }

    @Override
    def crawl() {
        logger.info("开始爬取")

        println(sendGetRequest(baseUrl))

        logger.info("爬取完成")
    }
}
